package org.ahuanlien.crm.mapper;

import java.util.List;

import org.ahuanlien.crm.domain.LossRecord;
import org.ahuanlien.crm.query.LossRecordQueryObject;

public interface LossRecordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(LossRecord record);

    LossRecord selectByPrimaryKey(Long id);

    List<LossRecord> selectAll();

    int updateByPrimaryKey(LossRecord record);

    /**
     * 开发失败记录列表
     * @param qo
     * @return
     */
    int falseQueryForCount(LossRecordQueryObject qo);

    List<LossRecord> falseQueryForList(LossRecordQueryObject qo);

    /**
     * 客户流失记录列表
     * @param qo
     * @return
     */
    int lossQueryForCount(LossRecordQueryObject qo);

    List<LossRecord> lossQueryForList(LossRecordQueryObject qo);
}